package org.zxp.gc.gclog;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: effectiveJava
 * @description:
 * -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:/log/heapTest.log
 * @author: X-Pacific zhang
 * @create: 2020-03-17 12:03
 **/
public class GcLogTest {
    static List temp = new ArrayList();
    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            Byte[] b = new Byte[1024 * 1024 * 1024];
            temp.add(b);
        }
        try {
            Thread.sleep(1000000000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
